package com.weixin.engine.event;

import cn.hutool.extra.spring.SpringUtil;
import com.weixin.common.core.doman.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO 功能描述
 *
 * @author wangchunhui
 * @date 2023/12/12 10:29
 */
@RestController
@RequestMapping("/event")
public class EventController {

    /**
     * 接口测试执行
     *
     * @return com.weixin.common.core.doman.Result
     * @author wangchunhui
     * @date 2022/6/20 14:47
     */
    @GetMapping("/doEvent")
    public Result doEvent() {

        PaymentService paymentService = SpringUtil.getBean(PaymentService.class);
        paymentService.doService();

        return Result.SUCCESS();
    }
}
